package com.nahan.secondapplication;

import android.app.Activity;

/**
 * 描述:
 * on 2020/9/2
 */
public class MyUtils {
    /**
     * 检查activity是否已经关闭
     *
     * @param mActivity 需要检查的activity
     * @return 结果
     */
    public static boolean activityIsFinished(Activity mActivity) {
        if (mActivity == null || mActivity.isFinishing()) {
            return true;
        }
        return false;
    }
}
